/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.lihaichen.rabbitmq.simplermqmvn;

/**
 *
 * @author Owner
 */
public class Main {

    public static void main(String[] args) {
        // producing some messages
        for (int i = 1; i < 6; i++) {
            final String message = "This is message numero " + i;
            SampleProducer producer = new SampleProducer(message);
            new Thread(producer).start();
        }

        Thread consumerThread = new Thread(new SampleConsumer());
        consumerThread.start();
    }
}
